package org.metasketch.graphics;

import java.util.ArrayList;
import java.util.List;

import org.metasketch.model.CommonIdentified;
import org.metasketch.model.IdDatabase;

public class DiagramSet {

	IdDatabase index = new IdDatabase();

	List<Diagram> diagrams = new ArrayList<Diagram>();

	public List<Diagram> getDiagrams() {
		return diagrams;
	}

	public void setDiagrams(List<Diagram> diagrams) {
		this.diagrams = diagrams;
	}

	public boolean containsStuff() {

		return !diagrams.isEmpty();
	}

	public void addChild(CommonIdentified node) {

		index.storeNode(node);

	}

	public void removeChild(CommonIdentified node) {

		index.removeNode(node);

	}

}
